import { useState, useCallback } from 'react';

export default function Page() {
  const [loading, setLoading] = useState(true);

  const httpStart = useCallback(() => setLoading(true), []);
  const httpOver = useCallback(() => setLoading(false), []);

  return { loading, httpStart, httpOver };
}